package session02.bean;

public class ChildBean {
    private int childID;
    private String name;
    private HusbandBean myDad;
    private WifeBean myMum;

    public HusbandBean getMyDad() {
        return myDad;
    }

    public void setMyDad(HusbandBean myDad) {
        this.myDad = myDad;
    }

    public WifeBean getMyMum() {
        return myMum;
    }

    public void setMyMum(WifeBean myMum) {
        this.myMum = myMum;
    }

    public ChildBean() {

    }

    public ChildBean(int childID, String name) {
        this.childID = childID;
        this.name = name;
    }

    public ChildBean(int childID, String name, HusbandBean myDad, WifeBean myMum) {
        this.childID = childID;
        this.name = name;
        this.myDad = myDad;
        this.myMum = myMum;
    }

    public int getChildID() {
        return childID;
    }

    public void setChildID(int childID) {
        this.childID = childID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "ChildBean{" +
                "childID=" + childID +
                ", name='" + name + '\'' +
                ", myDad=" + myDad +
                ", myMum=" + myMum +
                '}';
    }
}
